package com.buba.user.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.buba.pojo.other.DivisionType;
import com.buba.pojo.user.Campus;
import com.buba.pojo.user.PatientCard;
import com.buba.pojo.user.ThePatient;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lj
 * @Type InpatientVo
 * @Desc
 * @date 2022/6/13 10:33
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class InpatientVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Integer id;

    @ApiModelProperty(value = "就诊人id")
    @TableField("Patient_id")
    private Integer patientId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "住院科室id")
    private Integer departmentId;

    @ApiModelProperty(value = "入院时间")
    private Date hospitalizedTime;

    @ApiModelProperty(value = "出院时间")
    private Date leavehospitalTime;

    @ApiModelProperty(value = "住院状态（住院中、已出院）")
    private String status;

    @ApiModelProperty(value = "住院号（随机6位数）")
    private String admissionNumber;

    @ApiModelProperty(value = "创建时间")
    private Date creationTime;

    @ApiModelProperty(value = "修改时间")
    private Date modificationTime;

    private ThePatient thePatient;

    private DivisionType divisionType;

    private Campus campus;

    private PatientCard patientCard;

}
